home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Util / conv / Acvt.lha / Acvt 1.07 / sources / cobj.h < prev    next >
C/C++ Source or Header  |  2001-03-08  |  1KB  |  35 lines

  1. //    This program is free software; you can redistribute it and/or modify
  2. //    it under the terms of the GNU General Public License as published by
  3. //    the Free Software Foundation; either version 2 of the License, or
  4. //    any later version.
  5. //
  6. //    This program is distributed in the hope that it will be useful,
  7. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. //    GNU General Public License for more details.
  10. //
  11. //    You should have received a copy of the GNU General Public License
  12. //    along with this program; if not, write to the Free Software
  13. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. //
  15.  
  16. #ifndef __COBJ_H__
  17. #define __COBJ_H__
  18.  
  19. #include "wintypes.h"
  20.  
  21. class CObj
  22. {
  23. public:
  24.     CObj();
  25.     const char* GetLastError( char* p = NULL ) { if ( p ) strcpy( p, m_szLastError ); return m_szLastError; };
  26.     void SetLastError( char* p ) { strcpy( m_szLastError, p ); };
  27.     int    GetErrorCode() { return m_iErrorCode; };
  28.     
  29. protected:
  30.     char m_szLastError[ 4096 ];
  31.     int m_iErrorCode;
  32. };
  33.  
  34. #endif
  35.